using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Item_modellist : DoubleClickBtn
{
    private Text id;
    private Text itemName;
    private Image icon;

    protected override void Start()
    {
        base.Start();
        var colors = this.colors;
        colors.highlightedColor = StaticData.blue;
        this.colors = colors;
    }

    public void Init()
    {
        id = transform.Find("id").GetComponent<Text>();
        itemName = transform.Find("name").GetComponent<Text>();
        icon = transform.Find("icon").GetComponent<Image>();

        GetComponent<Button>().onClick.AddListener(OnBtnClick);
    }

    private void OnBtnClick()
    {
        Debug.Log("OnItemClick ");
    }
}
